{% extends "base.html" %}
{% block title %}公众号管理平台{% endblock %}
{% block content %}
 <div id="dinfo" class="dinfo">
      <div class="panel panel-success dversion">
          <div class="panel-heading" id="dtitle">
          </div>
          <div class="panel-body" id="dcontent">
          </div>
       </div>
 </div>
<div id="page-inner">
    <div class="row">
        <div class="col-md-12">
            <h1 class="page-head-line">服务控制</h1>
        </div>

    </div>
        {% if versionerror%}
        <div class="alert alert-danger text-center" id="versioninfo">{{ versionerror }}</div>
        {% endif %}
        {% if versioninfo%}
        <div class="alert alert-success text-center" id="versioninfo">{{ versioninfo }}</div>
        {% endif %}
    <div class="col-md-4 col-sm-6 col-xs-12">
        <div class="panel panel-info">
            <div class="panel-heading">
                构建新版本
            </div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-md-6">
                        <div class="table-responsive">
                            <div class="form-group">
                                <form class="form-signin" role="form" action="" method="post" enctype="multipart/form-data" id="versionadd">
                                <label>版本号</label>
                                <input class="form-control" type="text" name="vsion" value="{{ vsion }}" disabled="true" id="versionver"/>
                                <p class="help-block">V-日期+编号,例如:V-2016092201</p>
                                <label>
                                    <input type="checkbox" value="0" name="versioncrypt" id="versioncrypt">&nbsp;是否加密
                                </label>
                                <p class="help-block">是否为编译加密版本</p>
                                <label>版本详情</label>
                                <textarea class="form-control" rows="3" name="info" id="versioninfo">版本描述不能为空</textarea>
                                <p class="help-block">版本具体描述</p>
                                <label>新版本上传</label>
                                <div class="fileupload fileupload-new" data-provides="fileupload">
                                            <span class="btn btn-file btn-default">
                                                <span class="fileupload-new">Server</span>
                                                <input type="file" name="server" id="versionserver">
                                                <span class="fileupload-new">Robot</span>
                                                <input type="file" name="robot" id="versionrobot">
                                            </span>
                                </div>
                                <br>
                                <input type="button" value="构建版本" class="btn btn-info" id="versionsave" onclick="versionadd()"/>
                                    </form>
                            </div>

                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <div class="col-md-8 col-sm-6 col-xs-12">
        <div class="panel panel-danger">
            <div class="panel-heading">
                版本列表
            </div>

            <div class="panel-body list">

                <div class="table-responsive">

                <table class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>版本号</th>
                            <th>是否加密</th>
                            <th>构建时间</th>
                            <th>服务客户</th>
                        </tr>
                    </thead>
                    <tbody id="versionlist">
                    {% for ver in lists %}
                        <tr onmouseover="disinfo('{{ ver.vsion }}','{{ ver.vinfo }}')" onmouseout="dinone()">
                            <td>{{ ver.id }}</td>
                            <td>{{ ver.vsion }}</td>
                            <td>{{ ver.vcrypt }}</td>
                            <td>{{ ver.vdate }}</td>
                            <td>{{ ver.cus }}</td>
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
            </div>
            </div>
        </div>
    </div>

</div>
{% endblock %}


